<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>640&代码生成-配置</title>
    <link rel="stylesheet" href="../static/bootstrap/css/bootstrap.min.css">
    <script src="../static/jquery/jquery.1.11.1.min.js" type="text/javascript"></script>
    <script src="../static/bootstrap/js/bootstrap.min.js"></script>
    <script src="../../static/js/config.js"></script>

</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-12 column">
            <nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="background: #4a9dce;">
                <div class="navbar-header">
                    <div class="navbar-brand" style="color: white;font-weight: bold;">代码生成</div>
                </div>
            </nav>
        </div>
    </div>
    <div class="row clearfix" style="margin-top:60px;">
        <div class="col-md-3">
            <% include("menu.html"){} %>
        </div>
        <div class="col-md-9">
            <div class="panel panel-primary">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        数据库配置
                    </h3>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form" id="configForm">
                        <div class="form-group">
                            <label for="driver" class="col-sm-2 control-label">驱动</label>
                            <div class="col-sm-10">
                                <select name="driver" id="driver" class="form-control">
                                    <option value="com.mysql.jdbc.Driver">Mysql</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="host" class="col-sm-2 control-label">主机名或IP</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="host" name="host"
                                       placeholder="请输入主机名或IP" value="${host!}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="port" class="col-sm-2 control-label">端口</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="port" name="port"
                                       placeholder="请输入端口" value="${port!3306}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="username" class="col-sm-2 control-label">用户名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="username" name="username"
                                       placeholder="请输入用户名" value="${username!}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="password" class="col-sm-2 control-label">密码</label>
                            <div class="col-sm-10">
                                <input type="password" class="form-control" id="password" name="password"
                                       placeholder="请输入密码" value="${password!}">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="database" class="col-sm-2 control-label">数据库名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" id="database" name="database"
                                       placeholder="请输入数据库名" value="${database!}">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-10 col-sm-offset-3">
                                <a href="javascript:void(0);" class="btn btn-success" onclick="Config.save();">保存</a>
                                <a href="javascript:void(0);" class="btn btn-default" onclick="Config.test();">测试</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</body>
</html>